﻿using mscook.core.services;
using mscook.mvc.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace mscook.mvc.Controllers
{
    public class BuyMagazineController : BaseController
    {
        private IMagazineService magazineService;
        public BuyMagazineController(IActionBonusSettingService actionBonusSettingService, IResourceBonusSettingService resourceBonusSettingService, ILoginUserService loginUserService, IMagazineService magazineService)
            : base(actionBonusSettingService, resourceBonusSettingService, loginUserService)
        {
            this.magazineService = magazineService;
        }
        //
        // GET: /Magazine/

        public ActionResult Index()
        {

            return View(magazineService.SelectAll());
        }

        [ResourceBonusFilter(resourceId = "resourceId")]
        public ActionResult Buy(string resourceId)
        {

            return RedirectToAction("Index");
        }

    }
}
